import tushare as ts
import math
import pandas as pd
import numpy as np

ts.set_token('fe53a8928a5442e82ec2ed835f02562c7f5ac24fe7edaa2a40299c8a')
pro = ts.pro_api()

df_stock = pro.daily(trade_date='2021-01-12'.replace('-', ''))
csv_path = 'other/test_stock.csv'
df_stock = df_stock[['ts_code', 'close']]
df_stock.sort_values(by=['close'])
df_stock.to_csv(csv_path)